<div id="sfForumAction"><?php if ($sf_user->isSuperAdmin()): ?>
<div class='myforummenu'><a
	href="<?php echo url_for('sfForumCategory/new') ?>"><img
	src='/images/add_to_folder.png' />Новый раздел</a></div>
<?php endif; ?> <?php if($sf_user->isAuthenticated()): ?>
<div class='myforummenu'><a
	href="<?php echo url_for('myaccount/index') ?>"><img
	src='/images/edit_profile.png' />Мой профайл</a></div>
<?php if (!empty($topic) and $sf_user->getGuardUser()->getId()==$topic->getAuthor()): ?>
<?php echo link_to($topic->getName(),'sfForumCategory/edit?id='.$topic->getId()); ?>
<?php endif; ?> <?php endif; ?> <?php if (!$sf_user->isAuthenticated()): ?>
<?php echo '<div class="myforummenu">'. link_to('<img src="/images/accept.png" />Вход','@sf_guard_signin').'</div>' ?>
<?php else: ?> <?php echo '<div class="myforummenu">'. link_to('<img src="/images/block.png" />Выход','@sf_guard_signout').'</div>' ?>
<?php endif; ?>

<div class='forumsearch'><input class="searchtext" type="text"
	name="sfForumSearch" /> <input class="searchbutton" type="submit"
	name="sfForumSearchSubmit" value="Поиск" /></div>
</div>
